//**********对外API调用鉴权配置***********/;
import request from '@/utils/request.js';

/**
 * 保存
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  thirdAppName:'', //第三方APP名称 	类型:string 非必填
 * @returns
 * ********
 */
export function postApiauthconfig(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/api-auth-config`,
    ...config,
  }) 
}

/**
 * 修改
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  id:'', //$column.comments 	类型:integer 非必填
 *  secretKey:'', //密钥 	类型:string 非必填
 *  thirdAppName:'', //第三方APP名称 	类型:string 非必填
 * @returns
 * ********
 */
export function putApiauthconfig(data={}, config={}){
  return request({
    method: 'put',
    data,
    url: `/api/api-auth-config`,
    ...config,
  }) 
}

/**
 * 删除
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 // 类型 array
 * []integer
 * @returns
 * ********
 */
export function deleteApiauthconfig(data=[], config={}){
  return request({
    method: 'delete',
    data,
    url: `/api/api-auth-config`,
    ...config,
  }) 
}

/**
 * 分页列表
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * appName:'', //第三方APP名称 非必填
 * pageNo:'', //页码 非必填
 * pageSize:'', //每页数据条数 非必填
 * @returns
 * ********
 */
export function getApiauthconfigPageList(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/api-auth-config/page/list`,
    ...config,
  }) 
}